package com.icss.library.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Book implements Serializable {

    private Integer bookId;
    private String bname;
    private String author;
    private String publisher;
    private Double price;
    private Date pubdate;
    private String summary;
    private Integer typeId;
    private Integer state;

    public Book(String bname, String author, String publisher, Double price, Date pubdate, String summary, Integer typeId) {
        this.bname = bname;
        this.author = author;
        this.publisher = publisher;
        this.price = price;
        this.pubdate = pubdate;
        this.summary = summary;
        this.typeId = typeId;
    }
}
